package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 分包商信息表
 * @Author: jeecg-boot
 * @Date:   2025-05-31
 * @Version: V1.0
 */
@Data
@TableName("c_contractor_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_contractor_info对象", description="分包商信息表")
public class CContractorInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**分包商名称*/
	@Excel(name = "分包商名称", width = 15)
    @ApiModelProperty(value = "分包商名称")
    @TitleField // AOP 监听文件数据，存入文件表
    private String contactName;
    /**权限用户*/
    @Excel(name = "权限用户", width = 15)
    @ApiModelProperty(value = "权限用户")
    @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    private String userId;

    //虚拟字段
    @TableField(exist = false)
    private String userName;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String contactPerson;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String contactPhone;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
	/**电子邮箱*/
	@Excel(name = "电子邮箱", width = 15)
    @ApiModelProperty(value = "电子邮箱")
    private String email;
    /**合作模式*/
    @Excel(name = "合作模式", width = 15, dicCode = "sub_project_status")
    @Dict(dicCode = "sub_project_status")
    private String conspireMode;
    /**发票公司名称*/
    @Excel(name = "资质材料", width = 15)
    @ApiModelProperty(value = "资质材料")
    @FileField // AOP 监听文件数据，存入文件表
    private String qualificationsFile;
    /**发票公司名称*/
    @Excel(name = "资质范围", width = 15)
    @ApiModelProperty(value = "资质范围")
    private String qualificationScope;

    /**经营范围*/
    @Excel(name = "经营范围", width = 15)
    @ApiModelProperty(value = "经营范围")
    private String businessScope;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建人id*/
    @ApiModelProperty(value = "创建人id")
    private String createUser;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**分包商类型*/
	@Excel(name = "分包商类型", width = 15)
    @ApiModelProperty(value = "分包商类型")
    private String contactType;
	/**历史子项目*/
	@Excel(name = "历史子项目", width = 15)
    @ApiModelProperty(value = "历史子项目")
    private String subProjectId;



}
